﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QProgressBar>
#include <QSpinBox>
#include <QFontComboBox>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void initUi();

private slots:
    void on_action_New_triggered();

    void on_action_Open_triggered();

    void on_action_Blod_triggered(bool checked);

    void on_action_italic_triggered(bool checked);

    void on_action_Underline_triggered(bool checked);


    void on_spinBox_valueChanged(int size);
    void on_fontComboBox_changed(const QString&fontName);

    void on_textEdit_copyAvailable(bool b);

    void on_textEdit_selectionChanged();

    void on_action_insert_triggered();

private:
    Ui::MainWindow *ui;
    QLabel*fileName;
    QProgressBar*progressBar;
    QSpinBox*spinBox;
    QFontComboBox*fontComboBox;

};
#endif // MAINWINDOW_H
